package com.yuyu.shop.infrastructure.persistence.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author
 * @version 1.0
 * @description: 分布式事务表
 * @date 2022/12/12 11:27
 */
@TableName("transactional_record")
@Data
@Accessors(chain = true)
public class TransactionalRecordPO extends AbstractBasePO {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;//主键id

    private String xid;//事务id

    private Integer status;//1 try  2 commit 3 cancel
}
